/*
Copyright (C) 2011 Joachim Barthel
*/

function showOxAds (actionID, styleSheet, bannerFormat, animMode)
{
    /* please adapt the URL according to your server where OXID is running */
    var serverURL = 'http://localhost/oxid/';

    var _app = navigator.appName;
    if (_app == 'Microsoft Internet Explorer') {
        document.write('<iframe style="overflow:hidden;" frameborder="0" allowtransparency="true" id="oxads" height="680" width="205" src="'+serverURL+'modules/oxads/oxads.php?id='+actionID+'&s='+styleSheet+'&f='+bannerFormat+'&a='+animMode+'"></iframe>');
        }
    else {
        document.write('<object style="overflow:hidden;" id="oxads" height="650" width="205" data="'+serverURL+'modules/oxads/oxads.php?id='+actionID+'&s='+styleSheet+'&f='+bannerFormat+'&a='+animMode+'" type="text/plain"></object>');
    }
}